<extend file='resource/view/home1'/>
<block name="content">
    <article>
        <div class="_head category_title">
            <h2>
                {{$headData['type']}}
                {{$headData['name']}}
            </h2>
								<span>
									共{{$headData['total']}} 篇文章
								</span>
        </div>
    </article>
    <foreach from="$articleData" key="$k" value="$v">
        <article>
            <div class="_head">
                <h1>标题</h1>
                                    <span>
                                    作者：
                                    {{$v['author']}}
                                    </span>
                •
                <!--pubdate表⽰示发布⽇日期-->
                <time pubdate="pubdate" datetime="{{date('y-m-d',$v['sendtime'])}}">{{date(y-m-d,$v['sendtime'])}}</time>
                •
                分类：
                <a href="">{{$v['cname']}}</a>
            </div>
            <div class="_digest">
                <img src="{{__ROOT__}}/{{$v['thumb']}}" class="img-responsive"/>
                <p>
                    {{$v['digest']}}
                </p>
            </div>
            <div class="_more">
                <a href="{{__ROOT__}}/wz/{{$v['aid']}}.html" class="btn btn-default">阅读全文</a>
            </div>
            <div class="_footer">
                <i class="glyphicon glyphicon-tags"></i>
               <foreach from="$v['tag']" key="$kk" value="$vv">
                <a href="{{__ROOT__}}/tag/{{$vv['aid']}}.html">{{$vv['tname']}}</a>、
               </foreach>
            </div>
        </article>
    </foreach>
</block>